home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #6
/
Amiga Plus CD - 1996 - No. 06.iso
/
pd
/
netz
/
internet-set.v4.0
/
amitcp-4.0
/
bin
/
mysetup.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-07-22
|
1KB
|
57 lines
/* Get info for user.dat from user */
Do While Answer ~= 'Y'
Say ''
Say 'Enter your login name exactly'
Say ''
parse pull BogoName
Say ''
Say 'Now enter your password exactly'
Say ''
parse pull BogoWord
Say ''
Say 'What CPU is in your Amiga? (A) = 030 (B) = 020 std'
Say ''
Say 'Enter A or B (If you have lower than A1200 Pick (B) !!'
Say ''
Pull SpeedMod
If SpeedMod = 'A' Then
ModIs = '030 "Speedy Billy"'
Else
ModIs = '020 "Normal Norman"'
EndIf
If SpeedMod = 'A' Then
BogoSpeed = '57600'
Else
BogoSpeed = '38400'
EndIf
Say ''
Say 'Your login name is: ' BogoName
Say ''
Say 'Your password is : ' BogoWord
Say ''
Say 'And you have an: ' ModIs ' Amiga'
Say ''
Say 'Is this correct ? (Y/N) Enter Y or N'
Say ''
Pull Answer
End
Say 'All done'
/* Write/Edit user.dat file with User details */
If Open(1,'AmiTCP:bin/user.dat','Write') Then /* Opens user.dat for Output */
Do
BogoBit$ = BogoName'*'BogoWord'*'BogoSpeed /* put bogo var's in one var */
WriteLn(1,BogoBit$) Then /* write single var to file */
End
Close(1) /* close file 1 */
Exit